package com.yxtp.entity;

import org.springframework.web.multipart.MultipartFile;

/**
 * 
 * @author Nicky
 * @date 2019年5月28日
 */
public class ImgInfo {

	private Integer pid;
	private String username;
	private String description;
	private String imgPath;
	private MultipartFile file;
	private Integer uid;
	private String date;
	

	public ImgInfo(Integer pid, String username, String description, String imgPath, MultipartFile file, Integer uid,
			String date) {
		super();
		this.pid = pid;
		this.username = username;
		this.description = description;
		this.imgPath = imgPath;
		this.file = file;
		this.uid = uid;
		this.date = date;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	@Override
	public String toString() {
		return "ImgInfo [pid=" + pid + ", username=" + username + ", description=" + description + ", imgPath="
				+ imgPath + ", file=" + file + ", uid=" + uid + ", date=" + date + "]";
	}

	public ImgInfo() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ImgInfo(Integer pid, String username, String description, String imgPath, MultipartFile file, Integer uid) {
		super();
		this.pid = pid;
		this.username = username;
		this.description = description;
		this.imgPath = imgPath;
		this.file = file;
		this.uid = uid;
	}

}
